<template>
  <div class="cus">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="会员管理" name="first" class="cus-el-tabs">
        <div class="cus-label-div">
          <div><fromPost /></div>
          <div class="PUTtable">
            <putTableTwo :tableDa="tableVip" ref="putTableDom" />
          </div>
        </div>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<style  lang='scss'  scoped>
@import "../assets/scss/baseColor";
.cus-el-tabs {
  background: $back-color;
  .cus-label-div {
    background: rgb(255, 255, 255);
    height: 700px;

    padding: 10px;
  }
}
.creat-div {
  position: absolute;
  left: 120px;
}
.clear-float {
  height: 50px;
}
.button-primary {
  background: rgb(255, 255, 255);
}
.a-user {
  text-decoration: none;
  color: $button-style;
  float: right;
  font-size: 5px;
  margin-top: 10px;
}
.primary-left {
  float: left;
  position: relative;
}
.PUTtable {
  margin-top: 40px;
}
</style>
<script>
import fromPost from "../components/fromPost.vue";
import putTableTwo from "../components/putTableTwo.vue";
import { regisUserApi } from "../http/httpUser";

export default {
  data() {
    return {
      activeName: "first",
      tableVip: [],
    };
  },
  components: {
    fromPost,
    putTableTwo,
  },
  created() {
    regisUserApi(1)
      .then((res) => {
        if (res.data.code == 200) {
          this.tableVip = res.data.data.userList.filter((item) => item.card);
          this.$refs.putTableDom.loading = false;
          console.log(this.tableVip);
        } else {
          console.log(res);
        }
      })
      .catch();
  },
  methods: {},
};
</script>